-- GENERATED SPELL FOR [Splinter Fist Fire Weaver] --


function spell0_891(pUnit, Event) --@Fireball,n/a--
pUnit:FullCastSpellOnTarget(19816,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_891', 3000, 1)
end

function spell1_891(pUnit, Event) --@Flamestrike,n/a--
pUnit:FullCastSpellOnTarget(20296,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_891', 11000, 1)
end

function Sorts_891(pUnit, Event)
local choix_sorts_891 = math.random(0, 1)
if choix_sorts_891 == 0 then
pUnit:RegisterEvent('spell0_891', 1, 1)
end
if choix_sorts_891 == 1 then
pUnit:RegisterEvent('spell1_891', 1, 1)
end
end

function mob891_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_891', math.random(1500, 3000), 1)
end

function mob891_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob891_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob891_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(891, 1, 'mob891_Action')
RegisterUnitEvent(891, 2, 'mob891_Leave')
RegisterUnitEvent(891, 3, 'mob891_Kill')
RegisterUnitEvent(891, 4, 'mob891_Die')
